import request from '@/utils/request';

export const singleUploadApi = request.defaults.baseURL + '/CompanyWebsiteApi/SystemManage/File/SingleUpload';

// 上传文件
export const singleUpload = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/File/SingleUpload',
    method: 'POST',
    data
  });
}


// 获取文件内容
export const getFileContent = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/File/GetFileContent',
    method: 'GET',
    params
  });
}

// 获取文件信息
export const getFileInfo = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/File/GetFileInfo',
    method: 'GET',
    params
  });
}
